subdomain format: lakeviewlogistics[initials].nw7.nat-acc.ca
0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:45
Guided Lab
1:45–2:00
Debrief
Day 1 review & subdomain assignment
Quick check-in on Day 1 essentials, then distribute subdomain assignments so every student has their domain name before the lecture begins.
- Ask two or three students: "What is your tenant domain? What is your Tenant ID?" — from memory or Lab Journal
- Confirm all students can log in to admin.microsoft.com before proceeding
- Distribute subdomain assignments — each student receives their subdomain in the format lakeviewlogistics[initials].nw7.nat-acc.ca. Write the format on the board, have students record their specific subdomain in their Lab Journal immediately.
- Frame the context: Lakeview Logistics currently has email addresses ending in onmicrosoft.com — today that gets replaced with something a business can actually use.
Instructor note: Pre-create all student subdomains in the nw7.nat-acc.ca zone before class with TTL set to 300 seconds. Prepare a printed or shared list mapping each student to their subdomain. Have the DNS control panel open and tested on your machine before students arrive.
How Microsoft 365 uses DNS — and why it's unforgiving
Students know DNS. This lecture focuses entirely on what M365 does with it — the specific records required, why each exists, how the verification handshake works, and the real-world consequences of getting any of it wrong.
- The verification handshake — Microsoft generates a unique TXT record value tied to your specific tenant. Adding it to your DNS zone proves you control that zone. This isn't just a formality — it prevents one tenant from claiming a domain owned by another organisation. Once verified, the domain is locked to your tenant globally.
- What each M365 DNS record actually does — go beyond the record type to the service impact. What breaks if MX points to the wrong priority? What does SPF's -all vs ~all mean for mail delivery? Why does Autodiscover matter for end users on day one? What's actually happening when Teams uses the SIP SRV records?
- Subdomains as M365 domains — M365 treats lakeviewlogisticsjd.nw7.nat-acc.ca as a fully qualified domain for all purposes. User UPNs, email addresses, and SharePoint URLs will all use it. The fact that it's a subdomain rather than a root domain is transparent to M365 and to end users.
- Default domain vs primary domain — the verified domain becomes the default for new user accounts. The onmicrosoft.com domain is permanent and cannot be removed — it's used by Microsoft for backend service communication regardless of what custom domain is set as primary.
- The DNS health dashboard — after records are added, M365 continuously monitors them. A missing or misconfigured record shows up as a warning or error in the DNS health view. This is a live diagnostic tool admins should check after any DNS change and periodically thereafter.
Instructor note: Run a live MXToolbox lookup on an existing M365-connected domain to show what a correctly configured DNS zone looks like in the wild. Contrast SPF -all (hard fail) vs ~all (soft fail) — this comes up again in Week 3 when configuring Exchange Online mail flow and anti-spam. Plant the seed now.
Lab 1-B: Adding, verifying, and configuring a real custom domain
Students complete the full domain verification flow end-to-end using their assigned subdomain under nw7.nat-acc.ca. Every student leaves this lab with a verified, working custom domain and all M365 DNS records in place.
This is live. DNS records created today are real and will function. Read each step fully before acting, double-check every value before saving, and document everything in your Lab Journal as you go.
- Step 1 — Initiate domain addition (5 min)
In the admin centre: Settings → Domains → Add domain. Enter your subdomain exactly as assigned — e.g. lakeviewlogisticsjd.nw7.nat-acc.ca. Click Use this domain. Record the domain name in your Lab Journal.
- Step 2 — Copy the verification TXT record (5 min)
Microsoft will display a TXT record value unique to your tenant — format: MS=msXXXXXXXX. Copy it exactly. Paste it into your Lab Journal. Do not close this browser tab — you will return to it to click Verify.
- Step 3 — Add the verification TXT record to DNS (10 min)
Open the DNS control panel for your subdomain. Add a TXT record:
· Host/Name: @ (root of your subdomain zone)
· Value: the MS= value from Step 2
· TTL: 300
Save the record. Verify in the DNS panel that it appears correctly before switching tabs.
- Step 4 — Verify domain ownership (5 min)
Return to the admin centre. Click Verify. If it fails, wait 60 seconds and try again — with TTL at 300 it should resolve quickly. Record how many attempts it took and the time elapsed in your Lab Journal.
- Step 5 — Add all remaining M365 DNS records (30 min)
After verification, M365 displays the full set of required service records. Add each one to your DNS zone. Use TTL 300 for all. Work through them methodically — do not skip any:
| Type | Host / Name | Value / Points to | TTL | Breaks if missing |
| MX | @ | [tenant].mail.protection.outlook.com | 300 | All inbound email |
| TXT | @ | v=spf1 include:spf.protection.outlook.com -all | 300 | Outbound mail trust (SPF) |
| CNAME | autodiscover | autodiscover.outlook.com | 300 | Outlook client autoconfiguration |
| CNAME | lyncdiscover | webdir.online.lync.com | 300 | Teams client discovery |
| CNAME | sip | sipdir.online.lync.com | 300 | Teams SIP signalling |
| SRV | _sip._tls | sipdir.online.lync.com · Port 443 · Pri 100 · Wt 1 | 300 | Teams SIP over TLS |
| SRV | _sipfederationtls._tcp | sipfed.online.lync.com · Port 5061 · Pri 100 · Wt 1 | 300 | Teams external federation |
- Step 6 — Confirm DNS health (5 min)
In the admin centre: Settings → Domains → [your domain]. All records should show green within a few minutes. If any show a warning or error, compare your entered value against the expected value in the health view and correct it. Record the final status of every record in your Lab Journal.
- Step 7 — Set as primary domain (5 min)
In Settings → Domains, select your verified domain and click Set as default. Confirm. In your Lab Journal, note: which domain is now marked as default, and what role does onmicrosoft.com serve going forward?
- Step 8 — Use MXToolbox to validate externally (5 min)
Open mxtoolbox.com and run an MX lookup against your subdomain. Compare the result to what you entered. Then run a TXT lookup and confirm both your verification record and SPF record appear. This is how you validate DNS from outside the Microsoft ecosystem — a habit worth building.
SRV record fields: The DNS control panel may break SRV records into separate fields for service, protocol, priority, weight, port, and target. Match every field exactly to what M365 specifies. A wrong port or weight value won't throw an error — it will silently fail at the service level.
Instructor note: Step 8 is new and worth emphasising — students should get comfortable using external tools to validate DNS rather than relying solely on the M365 health dashboard. MXToolbox is something they'll use professionally. The SPF and MX lookups here directly preview Week 3 (Exchange Online), so reference that connection explicitly.
Reflection & preview
- Ask: "If the MX record priority was set to 0 on a competitor's mail server — what would happen to every email sent to Lakeview Logistics?" — surface the stakes of MX misconfiguration
- Ask: "Your SPF record uses -all. What's the difference between that and ~all, and which is more appropriate for a new organisation still setting up mail flow?" — connect to Week 3
- Quick hands up: who had verification succeed first attempt? Who needed to wait? Normalise propagation delay as a real operational consideration
- Collect exit ticket: for each of the seven DNS records added today, write one sentence describing what breaks if that record is missing or wrong
- Preview Day 3: the domain is live — now it's time to populate it with users. Day 3 covers user creation, licensing assignment, and bulk provisioning
Learning outcomes — by end of Day 2, students can…
Explain the M365 verification handshakeDescribe why Microsoft requires a TXT record and what it proves
Configure all M365 DNS recordsAdd MX, TXT (SPF), CNAME, and SRV records correctly and explain the service each enables
Diagnose using DNS health viewInterpret the admin centre DNS health dashboard and correct misconfigured records
Validate DNS externallyUse MXToolbox to confirm records from outside the Microsoft ecosystem
Set a primary domainChange the default domain and articulate the ongoing role of the onmicrosoft.com fallback
What you need ready
Subdomain list (one per student, pre-created)
DNS control panel access per student
TTL set to 300s on all student zones
MXToolbox open on projector
Lab 1-B step sheet with DNS record table